package com.wwwarehouse.carddesk.bean.teambean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @创建者 chenchao.
 * @创建时间 2017/11/14 9:12
 * @描述 ${TODO}
 */

public class AllPowerDetailBean implements Parcelable {


    /**
     * list : [{"businessName":"测试顶级业务11单位223343523","invalidDate":4102416000000,"itemId":11123456,"itemName":"导入商品资料","tagName":"仓内操作","tagUkid":123456789,"validDate":1509465600000}]
     * page : 1
     * size : 1
     * total : 1
     */

    private int page;
    private int            size;
    private int            total;
    private List<ListBean> list;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {
        /**
         * businessName : 测试顶级业务11单位223343523
         * invalidDate : 4102416000000
         * itemId : 11123456
         * itemName : 导入商品资料
         * tagName : 仓内操作
         * tagUkid : 123456789
         * validDate : 1509465600000
         */

        private String businessName;
        private String invalidDate;
        private String itemId;
        private String itemName;
        private String tagName;
        private String tagUkid;
        private String validDate;

        public String getBusinessName() {
            return businessName;
        }

        public void setBusinessName(String businessName) {
            this.businessName = businessName;
        }

        public String getInvalidDate() {
            return invalidDate;
        }

        public void setInvalidDate(String invalidDate) {
            this.invalidDate = invalidDate;
        }

        public String getItemId() {
            return itemId;
        }

        public void setItemId(String itemId) {
            this.itemId = itemId;
        }

        public String getItemName() {
            return itemName;
        }

        public void setItemName(String itemName) {
            this.itemName = itemName;
        }

        public String getTagName() {
            return tagName;
        }

        public void setTagName(String tagName) {
            this.tagName = tagName;
        }

        public String getTagUkid() {
            return tagUkid;
        }

        public void setTagUkid(String tagUkid) {
            this.tagUkid = tagUkid;
        }

        public String getValidDate() {
            return validDate;
        }

        public void setValidDate(String validDate) {
            this.validDate = validDate;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.businessName);
            dest.writeString(this.invalidDate);
            dest.writeString(this.itemId);
            dest.writeString(this.itemName);
            dest.writeString(this.tagName);
            dest.writeString(this.tagUkid);
            dest.writeString(this.validDate);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.businessName = in.readString();
            this.invalidDate = in.readString();
            this.itemId = in.readString();
            this.itemName = in.readString();
            this.tagName = in.readString();
            this.tagUkid = in.readString();
            this.validDate = in.readString();
        }

        public static final Parcelable.Creator<ListBean> CREATOR = new Parcelable.Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.page);
        dest.writeInt(this.size);
        dest.writeInt(this.total);
        dest.writeTypedList(this.list);
    }

    public AllPowerDetailBean() {
    }

    protected AllPowerDetailBean(Parcel in) {
        this.page = in.readInt();
        this.size = in.readInt();
        this.total = in.readInt();
        this.list = in.createTypedArrayList(ListBean.CREATOR);
    }

    public static final Parcelable.Creator<AllPowerDetailBean> CREATOR = new Parcelable.Creator<AllPowerDetailBean>() {
        @Override
        public AllPowerDetailBean createFromParcel(Parcel source) {
            return new AllPowerDetailBean(source);
        }

        @Override
        public AllPowerDetailBean[] newArray(int size) {
            return new AllPowerDetailBean[size];
        }
    };
}
